<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "zhibo_count".
 *
 * @property integer $id
 * @property integer $uid
 * @property string $zhibo_title
 * @property integer $room_id
 * @property string $star_time
 * @property integer $end_time
 * @property integer $like_nums
 * @property integer $cid
 */
class ZhiboCount extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'zhibo_count';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'room_id', 'end_time', 'like_nums', 'cid'], 'integer'],
            [['zhibo_title'], 'string', 'max' => 255],
            [['star_time'], 'string', 'max' => 32],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'uid' => Yii::t('app', '用户id'),
            'zhibo_title' => Yii::t('app', '标题'),
            'room_id' => Yii::t('app', '房间号'),
            'star_time' => Yii::t('app', '开始直播时间'),
            'end_time' => Yii::t('app', '结束直播时间'),
            'like_nums' => Yii::t('app', '点赞个数'),
            'cid' => Yii::t('app', '分类id'),
        ];
    }
}
